package game.module.announce.logic;

import java.util.Collection;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import game.module.announce.bean.AnnounceBean;
import game.module.announce.dao.AnnounceCache;
import game.module.announce.dao.AnnounceDao;

public class AnnounceLanManager {

	private static Logger logger = LoggerFactory.getLogger(AnnounceLanManager.class);

	static class SingletonHolder {
		static AnnounceLanManager instance = new AnnounceLanManager();
	}

	public static AnnounceLanManager getInstance() {
		return SingletonHolder.instance;
	}

	public void getAnnounceList() {
		Collection<AnnounceBean> announceAll = AnnounceCache.getInstance().getAnnounceAll();
	}

	public void updateAnnounce(String title, String content, int aId) {
		AnnounceDao.getInstance().updateAnnounce(title, content, aId);
	}
	
	public void deleteAnnounce(int aId) {
		AnnounceDao.getInstance().deleteAnnounce(aId);
	}

}
